# 作者: 薛文寅仟
# 2024年12月28日14时46分00秒
# 5443912@qq.com
def demo3(num, *args, **kwargs):
    """
    *args ——存放元组参数，前面有一个 *
    **kwargs ——存放字典参数，前面有两个 *
    """
    print(num)
    print(args)
    print(*args)   # 元组拆包
    print(kwargs)


def sum_numbers(*args):
    num = 0
    for n in args:
        num += n
    return num


def demo2(*args, **kwargs):
    print(f'demo2-{args}')
    print(f'demo2-{kwargs}')


def demo(*args, **kwargs):
    print(args)
    print(kwargs)
    demo2(*args, **kwargs)


if __name__ == '__main__':
    demo3(1, 2, 3, 4, 5, 6, name="xwyq", age=21)
    # print(sum_numbers(1, 2, 3, 4, 5))
    # demo(1, 2, 3, 4, 5, name="小明", age=19)
